package com.platform.api.bzproject.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户每日结算账单
 * </p>
 *
 * @author guoshao
 * @since 2022-02-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_settlement_days_bill")
public class SettlementDaysBill extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private String userid;

    /**
     * 结算状态：1-待结算；2-已结算；3-已打款
     */
    private Integer status;

    /**
     * 结算金额
     */
    private BigDecimal amount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 结算时间
     */
    private LocalDateTime settlementTime;

    /**
     * 最后修改用户
     */
    private Long updateUser;

    /**
     * 结算流水号
     */
    private String settlementNo;

    /**
     * 确认时间
     */
    private LocalDateTime confirmTime;

    /**
     * 确认状态：1-未确认；2-已确认
     */
    private Integer confirmState;

    /**
     * 结算平台 平台 1-微信；2-公众号；3-H5；4-抖音；5-快手
     */
    private Integer settlemantPlatform;

    /**
     * 下载次数
     */
    private Integer downCount;

    /**
     * 收益来源  1广告收入  2分销收入
     */
    private Integer dtype;

    @TableField(exist = false)
    private String settTime;


}
